﻿using Framework.Utility.Mail;
using Microsoft.AspNetCore.Mvc;
using MonitorCode.DBCode;
using MonitorCode.Hangfire;
using MonitorCode.NPS;

namespace DevSupport.Areas.Manage
{
    [ApiController]
    public class OnLineController : ControllerBase
    {
 
        /// <summary>
        /// 获取在线用户
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        [Route("api/Manage/GetOnLineList")]
        public async Task<object> GetOnLineList()
        { 
            var data = new { total=WebOnLine.OnLineCount,list=WebOnLine.OnLineList };
            return await Task.FromResult(data);
        }
   
    }
}